package com.mes.defece.mapper;

import com.mes.pojo.defece.Defece;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DefeceMapper {
//    分页查询所有缺陷
    List<Defece> selectAll(Defece defece);
//    新增缺陷
    int insert(Defece defece);
//    根据id查询缺陷数据
    Defece selectById(Long defefceId);
//    根据id修改缺陷数据
    int updateDefeceById(Defece defece);
//    根据id修改缺陷状态
    int updateDefeceStatus(Defece defece);
}
